package com.xuecheng.framework.domain.course.ext;

import com.xuecheng.framework.domain.course.Teachplan;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
* @Author: gongfy
* @Return:  树结构数据 ：[{
 *       id: 1,
 *       label: '一级 1',
 *       children: [{ id: 4, label: '二级 1‐1' }]
 *      }]
* @Date: 2020/7/25 14:56
* @Description: 自定义模型属性结构类   继承teachplan并且包含List<TeachplanNode> children子节点 符合返回树形结构数据
**/
@Data
@ToString
public class TeachplanNode extends Teachplan {

    List<TeachplanNode> children;

}
